gtk4.git
11 years agoinspector: Update translations .ui.h file
Jasper St. Pierre [Mon, 29 Dec 2014 02:13:24 +0000 (18:13 -0800)]
inspector: Update translations .ui.h file

11 years agoInspector: Show some X display characteristics
Matthias Clasen [Sun, 28 Dec 2014 16:36:10 +0000 (11:36 -0500)]
Inspector: Show some X display characteristics

This helps diagnose e.g. csd problems.

11 years agoRestore a missing file
Matthias Clasen [Sun, 28 Dec 2014 16:06:24 +0000 (11:06 -0500)]
Restore a missing file

No wonder nobody has tried my awesome magnifier yet...

11 years agomir: Add missing reference to gdkmir-private.h
Rico Tzschichholz [Sun, 28 Dec 2014 12:34:16 +0000 (13:34 +0100)]
mir: Add missing reference to gdkmir-private.h

11 years agoUpdated vi translation for gtk+properties
Trần Ngọc Quân [Sun, 28 Dec 2014 02:20:14 +0000 (09:20 +0700)]
Updated vi translation for gtk+properties

Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com>
11 years agoscrolledwindow: fix spurious warnings from previous scrollbar commits
Christian Hergert [Fri, 26 Dec 2014 22:19:55 +0000 (14:19 -0800)]
scrolledwindow: fix spurious warnings from previous scrollbar commits

11 years agox11/gl: Set the correct minor version
Emmanuele Bassi [Thu, 25 Dec 2014 11:49:58 +0000 (11:49 +0000)]
x11/gl: Set the correct minor version

The major version is set twice.

https://bugzilla.gnome.org/show_bug.cgi?id=741954

11 years agoquartz: NSWindow NULL check in get_scale_factor
Philip Chimento [Sat, 11 Oct 2014 04:35:23 +0000 (21:35 -0700)]
quartz: NSWindow NULL check in get_scale_factor

Sending backingScaleFactor to a NULL NSWindow will silently give the
value 0 for the scale factor, causing insidious divide-by-zero bugs down
the line. This checks if the NSWindow is NULL first, as seems to happen
throughout the rest of the file.

Note that I don't have a hi-DPI OS X machine to test this on, though.

https://bugzilla.gnome.org/show_bug.cgi?id=738338

11 years agoPrevent double-free after 8b5d30d43.
John Ralls [Wed, 24 Dec 2014 20:50:57 +0000 (12:50 -0800)]
Prevent double-free after 8b5d30d43.

11 years agoscrolledwindow: Enable "hover" mode in scrollbars after a timeout
Carlos Garnacho [Mon, 1 Dec 2014 13:25:23 +0000 (14:25 +0100)]
scrolledwindow: Enable "hover" mode in scrollbars after a timeout

This way transient mouse movements over scrollbars don't cause flickering,
and more spaced movements have it enabled shortly.

11 years agoscrolledwindow: improve v/hscrollbar proximity detection
Carlos Garnacho [Mon, 1 Dec 2014 12:59:22 +0000 (13:59 +0100)]
scrolledwindow: improve v/hscrollbar proximity detection

Only horizontal coordinates are checked for the vertical scrollbar, and
vice versa.

11 years agoscrolledwindow: fade out scrollbars on leave notify
Carlos Garnacho [Mon, 1 Dec 2014 12:37:18 +0000 (13:37 +0100)]
scrolledwindow: fade out scrollbars on leave notify

11 years agoscrolledwindow: make it a windowed widget again
Carlos Garnacho [Mon, 1 Dec 2014 12:23:57 +0000 (13:23 +0100)]
scrolledwindow: make it a windowed widget again

This is so we can detect crossing events on the scrolledwindow widget,
which can be useful for toggling certain behaviors or not depending on
whether the mouse is on the widget.

11 years agoscrolledwindow: Show scrollbars upon captured motion events
Carlos Garnacho [Sat, 29 Nov 2014 15:53:05 +0000 (16:53 +0100)]
scrolledwindow: Show scrollbars upon captured motion events

On mice, scrollbars are always triggered temporarily. On proximity to an
scrollbar, it will be switched to full-width.

11 years agopopover: Add a missing #ifdef
Ting-Wei Lan [Wed, 24 Dec 2014 13:59:49 +0000 (21:59 +0800)]
popover: Add a missing #ifdef

11 years agoGtkCalendar: Slightly change overflow behaviour
Matthias Clasen [Wed, 24 Dec 2014 02:49:21 +0000 (21:49 -0500)]
GtkCalendar: Slightly change overflow behaviour

If the first of the month was falling on a Sunday, we would not
render any days of the previous month, and instead show two weeks
of the next month at the bottom. Improve this by showing one week
of each.

https://bugzilla.gnome.org/show_bug.cgi?id=301835

11 years agoAvoid a crash in testcalendar
Matthias Clasen [Wed, 24 Dec 2014 02:47:50 +0000 (21:47 -0500)]
Avoid a crash in testcalendar

When changing between months, we can get into a situation like
'February 30", which GDate doesn't accept. Don't crash in that
case.

11 years agocss: Handle font-size changes properly
Matthias Clasen [Wed, 24 Dec 2014 02:11:00 +0000 (21:11 -0500)]
css: Handle font-size changes properly

Changing font size does not cause widgets to update their size
properly anymore, since we forgot an invalidation flag. The
problem can be observed e.g. by running gtk3-demo and calling

gsettings set org.gnome.desktop.interface font-name "Cantarell 22"

11 years agoAdwaita: Bring back 'other month' coloring
Matthias Clasen [Wed, 24 Dec 2014 01:36:30 +0000 (20:36 -0500)]
Adwaita: Bring back 'other month' coloring

The days that are not in the current month used to be rendered
in a ligher color. This was lost at some point. Bring it back.

11 years agoGtkCalendar: Use GDateTime for calculations
Matthias Clasen [Wed, 24 Dec 2014 01:28:49 +0000 (20:28 -0500)]
GtkCalendar: Use GDateTime for calculations

Instead of old copy-paste code, use GDateTime to determine week
numbers and days of week.

11 years agoFormatting fixes
Matthias Clasen [Tue, 23 Dec 2014 23:37:28 +0000 (18:37 -0500)]
Formatting fixes

11 years agoFormatting fixes
Matthias Clasen [Tue, 23 Dec 2014 05:20:11 +0000 (00:20 -0500)]
Formatting fixes

11 years agoGtkRecentManager: Formatting fixes
Matthias Clasen [Mon, 22 Dec 2014 22:16:30 +0000 (17:16 -0500)]
GtkRecentManager: Formatting fixes

11 years agoUpdated Russian translation
Stas Solovey [Tue, 23 Dec 2014 14:09:52 +0000 (14:09 +0000)]
Updated Russian translation

11 years agowindow: Use subsurfaces for popovers on wayland
Carlos Garnacho [Mon, 20 Oct 2014 17:10:52 +0000 (19:10 +0200)]
window: Use subsurfaces for popovers on wayland

On the wayland backend, set up GDK_WINDOW_SUBSURFACE windows
for popovers. In the popover code, the popover-relative-to-parent
calculation had to be tweaked, and it's been made to always prefer
the given popover position, since there's no sizing limitations.

https://bugzilla.gnome.org/show_bug.cgi?id=738891

11 years agoGtkApplicationWindow: Documentation fix
Patrick Welche [Tue, 23 Dec 2014 10:35:40 +0000 (10:35 +0000)]
GtkApplicationWindow: Documentation fix

gtk_builder_add_from_string takes more than 2 parameters.

https://bugzilla.gnome.org/show_bug.cgi?id=741897

11 years agoAdwaita: Special-case server-side window decorations
Florian Müllner [Thu, 18 Dec 2014 13:18:50 +0000 (14:18 +0100)]
Adwaita: Special-case server-side window decorations

The WM already adds the window shadow in that case, so just use the
box-shadow to add the border here.

11 years agoGtkNotebook: Be a bit more safe against cur_page being NULL
Matthias Clasen [Mon, 22 Dec 2014 15:52:54 +0000 (10:52 -0500)]
GtkNotebook: Be a bit more safe against cur_page being NULL

https://bugzilla.gnome.org/show_bug.cgi?id=477454

11 years agoGtkRecentManager: Survive without a filename
Matthias Clasen [Mon, 22 Dec 2014 13:21:50 +0000 (08:21 -0500)]
GtkRecentManager: Survive without a filename

We were asserting priv->filename != NULL in various places,
which leads to apps refusing to work when HOME is set to a
nonexisting or nonwritable value. Since it isn't hard, just
make GtkRecentManager survive without a filename. We won't
save or read any recently used files in this state, but
thats ok.
https://bugzilla.gnome.org/show_bug.cgi?id=739038

11 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 22 Dec 2014 12:08:37 +0000 (13:08 +0100)]
Updated Spanish translation

11 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 22 Dec 2014 12:08:20 +0000 (13:08 +0100)]
Updated Spanish translation

11 years agoGtkMenuTracker: add hidden-when='macos-menubar'
Ryan Lortie [Tue, 16 Dec 2014 17:14:23 +0000 (12:14 -0500)]
GtkMenuTracker: add hidden-when='macos-menubar'

Provide a mechanism for hiding the "Quit", "About" and "Preferences"
menu items from the normal places in a traditional menubar layout (in
the File and Edit menus) when the menu is being rendered in the Mac OS
menubar.

These items can already be found in the application menu.

With this feature, applications can now define a single menu to use in
all 'traditional' scenarios.

Use this new attribute in Bloatpad.

https://bugzilla.gnome.org/show_bug.cgi?id=741610

11 years agoGtkRecentManager: Allow instantiating with gtk_init
Matthias Clasen [Mon, 22 Dec 2014 04:14:02 +0000 (23:14 -0500)]
GtkRecentManager: Allow instantiating with gtk_init

This apparently used to work, and it doesn't do harm to allow it.

https://bugzilla.gnome.org/show_bug.cgi?id=705582

11 years agoSome formatting cleanups
Matthias Clasen [Sun, 21 Dec 2014 03:49:09 +0000 (22:49 -0500)]
Some formatting cleanups

11 years agoGDK-Win32: Drop Some Unused Items
Chun-wei Fan [Mon, 22 Dec 2014 03:25:49 +0000 (11:25 +0800)]
GDK-Win32: Drop Some Unused Items

There were a bit of unused items from the GDK-Win32 work on GL support, so
drop them.

11 years agoreftests: Fix typo
Ting-Wei Lan [Sun, 21 Dec 2014 06:51:00 +0000 (14:51 +0800)]
reftests: Fix typo

It causes build failure on MinGW.

https://bugzilla.gnome.org/show_bug.cgi?id=741827

11 years agoGtkMenuTracker: add missing documentation fragment
Ryan Lortie [Tue, 16 Dec 2014 17:22:23 +0000 (12:22 -0500)]
GtkMenuTracker: add missing documentation fragment

https://bugzilla.gnome.org/show_bug.cgi?id=741610

11 years agoinspector: Remove an errant shadow
Matthias Clasen [Sun, 21 Dec 2014 00:39:09 +0000 (19:39 -0500)]
inspector: Remove an errant shadow

11 years agoinspector: Add a magnifier
Matthias Clasen [Sun, 21 Dec 2014 00:24:08 +0000 (19:24 -0500)]
inspector: Add a magnifier

Add a magnifier that shows the selected widget up to 5 times
enlarged.

11 years agoGtkTextView: disconnect the magifier on destroy
Matthias Clasen [Sun, 21 Dec 2014 00:19:24 +0000 (19:19 -0500)]
GtkTextView: disconnect the magifier on destroy

This prevents warnings that would otherwise happen when
the magifier is finalized.

11 years agoGtkMagnifier: Add a resizing mode
Matthias Clasen [Sun, 21 Dec 2014 00:16:46 +0000 (19:16 -0500)]
GtkMagnifier: Add a resizing mode

In addition to the fixed-size mode that is used by the text view,
add a mode in which the magnifier requests enough size to render
the entire inspected widget at the current magnification. In this
mode, the magnifier will update its size when the size of the
inspected widget changes. Also, make the magnifier redraw on its
own whenever the inspected widget draws.

11 years agowidget: Set the allocation via gtk_widget_set_allocation()
Benjamin Otte [Sat, 20 Dec 2014 19:39:31 +0000 (20:39 +0100)]
widget: Set the allocation via gtk_widget_set_allocation()

There is no good reason to assign the value directly.

Also, this fixes d23f3254b7fcef0fc57739ce5cd548742870b119
where widgets that chained up instead of calling
gtk_widget_set_allocation() would not draw becaues of empty clip.

11 years agocsstransform: Fix comparisons crashing
Benjamin Otte [Fri, 19 Dec 2014 18:16:47 +0000 (19:16 +0100)]
csstransform: Fix comparisons crashing

Transforms of different type are not equal.

11 years agowidget: Handle setting clip differently
Benjamin Otte [Fri, 19 Dec 2014 18:05:12 +0000 (19:05 +0100)]
widget: Handle setting clip differently

(1) Get rid of supports_clip flag. All widgets (implicitly) support
clip.

(2) Don't reset the clip to { 0, 0, 0, 0 } before the "size-allocate"
signal.

(3) Make gtk_widget_set_allocation() set the clip (to the allocation).
This ensures that eveyr widget has a clip set.
Note: It overrides previous calls to gtk_widget_set_clip(), while in
3.14 this didn't happen.

(4) As the clip is set by gtk_widget_set_allocation() now, don't set
it after the "size-allocate" signal anymore.

This fixes calls to gtk_widget_queue_draw() from inside the
size_allocate vfunc.

11 years agowidget-factory: Don't pulse dead widgets
Benjamin Otte [Tue, 16 Dec 2014 18:10:53 +0000 (19:10 +0100)]
widget-factory: Don't pulse dead widgets

Causes crashes at cleanup and we don't want those.

Also, code gets simpler.

11 years agoDon't initialize GL if it has been disabled
Matthias Clasen [Fri, 19 Dec 2014 17:27:31 +0000 (12:27 -0500)]
Don't initialize GL if it has been disabled

We've observed hangs of mutter when it initializes GTK+, which
are caused by initializing GL, which in turn makes xwayland
call back into mutter. With this change, mutter should just
disable GL support in GDK, and things will work.

11 years agoGtkApplication: Try to cope with ssh situations better
Matthias Clasen [Fri, 19 Dec 2014 04:20:43 +0000 (23:20 -0500)]
GtkApplication: Try to cope with ssh situations better

Override the gtk-shell-shows-app-menu and gtk-shell-shows-menubar
settings to FALSE, if we can detect that we are not on the same
session bus as the xsettings provider that we got these settings
from.

We determine this by comparing the bus ID of 'our' session
bus with the one reported in the Gtk/SessionBusId xsetting.
If they are different, then it very likely that we are in an ssh
situation where we see the forwarded X display, but not the
session bus. The D-Bus based menu exporting will not work
in this situation.

https://bugzilla.gnome.org/show_bug.cgi?id=671802

11 years agoAdd an XSetting for the session bus ID
Matthias Clasen [Fri, 19 Dec 2014 04:19:19 +0000 (23:19 -0500)]
Add an XSetting for the session bus ID

This will allow us to identify situations where we are not on
the same session bus as the xsettings provider.

https://bugzilla.gnome.org/show_bug.cgi?id=671802

11 years agoUpdated German translation
Christian Kirbach [Thu, 18 Dec 2014 22:49:08 +0000 (22:49 +0000)]
Updated German translation

11 years agotextview: make magnifier size dependent on text size
Carlos Garnacho [Fri, 21 Nov 2014 14:21:49 +0000 (15:21 +0100)]
textview: make magnifier size dependent on text size

The magnifier is now set enough height to show the line being currently
manipulated, which makes it just big enough to show the layout height at
that size and magnification.

11 years agoAdwaita: Make text handles a bit larger
Carlos Garnacho [Thu, 20 Nov 2014 13:19:39 +0000 (14:19 +0100)]
Adwaita: Make text handles a bit larger

This improves visibility, and interaction, as the invisible rect around is
dependent on the visible handle size

11 years agotextview: Implement friendlier touch selection
Carlos Garnacho [Thu, 20 Nov 2014 13:12:41 +0000 (14:12 +0100)]
textview: Implement friendlier touch selection

- It is not possible anymore to trigger text DnD through touch, pressing
  and dragging from within the selection will instead extend it. Text
  shrinking is still available through the handles
- The selection mode for touch is per-word, char-level manipulation is
  still available through the handles.
- Tapping within the selection will bring in text handles, and toggle
  text selection popover.

11 years agotextview: Make "extend selection" only extend
Carlos Garnacho [Thu, 20 Nov 2014 13:03:07 +0000 (14:03 +0100)]
textview: Make "extend selection" only extend

This mode could also shrink the selection, plus the starting point would
seem somewhat arbitrary (actually dependent on the dragging direction of
the last selection).

Made this mode more consistent by only allowing it to extend the selection,
only in one direction for each operation, and so it keeps the current
selection as a minimum.

11 years agotextview: Pass a boolean telling whether a selection drag should extend
Carlos Garnacho [Thu, 20 Nov 2014 12:57:46 +0000 (13:57 +0100)]
textview: Pass a boolean telling whether a selection drag should extend

Instead of passing a GdkEvent and let the function figure out whether the
selection should be extended, let that to the caller and just pass a
boolean here.

11 years agotextview: Show magnifier on top of current line
Carlos Garnacho [Thu, 20 Nov 2014 12:52:13 +0000 (13:52 +0100)]
textview: Show magnifier on top of current line

The X coordinate is dependent on touch position, but Y is stepped.

11 years agotexthandle: Use active state when handles are being dragged
Carlos Garnacho [Thu, 20 Nov 2014 12:46:30 +0000 (13:46 +0100)]
texthandle: Use active state when handles are being dragged

The active state flags is set on both handles when this happens.

11 years agotexthandle: Use the handle widget style context for rendering
Carlos Garnacho [Thu, 20 Nov 2014 12:41:24 +0000 (13:41 +0100)]
texthandle: Use the handle widget style context for rendering

Using the parent widget context is a leftover of the pre-popover
implementation, which used GdkWindows directly. This will make the context
reflect widget state, at the expense of changing the selector paths
that used to match the handles.

11 years agogesturesingle: check for the sequence being handled, not just the event
Carlos Garnacho [Thu, 20 Nov 2014 12:25:40 +0000 (13:25 +0100)]
gesturesingle: check for the sequence being handled, not just the event

Checking the return value was valid for most gestures, but
GtkGestureLongPress, where the first press triggers internally an action,
but does nothing for the sequence to be claimed/denied, FALSE was eventually
returned, and the button/sequence functions would be incorrect when
::pressed is emitted.

So check that the sequence is being handled by the gesture, this is more
desirable than the return value as it's independent of sequence state,
and still will be FALSE for the cases we want to catch here.

11 years agogtktextlayout: fix to quiet a warning
Sebastien Lafargue [Thu, 18 Dec 2014 20:00:45 +0000 (21:00 +0100)]
gtktextlayout: fix to quiet a warning

Gcc complains about a possible use of a not initialised
widget ref ( which can't happen in reality )

https://bugzilla.gnome.org/show_bug.cgi?id=741702

11 years agogtktextlayout: fix for right margin with RTL text
Sebastien Lafargue [Thu, 18 Dec 2014 19:52:58 +0000 (20:52 +0100)]
gtktextlayout: fix for right margin with RTL text

When a RTL paragraph is not set to wrap, the right margin is not respected
because of the margins counted twice so we replace
display->width by PIXEL_BOUND (extents.width), the same quantity
without the margins.

https://bugzilla.gnome.org/show_bug.cgi?id=741702

11 years agoMinor documentation fix
Erick Pérez Castellanos [Sat, 13 Dec 2014 15:36:15 +0000 (10:36 -0500)]
Minor documentation fix

11 years agoprinting: Translate context to correct position
Marek Kasik [Thu, 18 Dec 2014 15:26:29 +0000 (16:26 +0100)]
printing: Translate context to correct position

Use correct margins of given page setup when translating context
to imageable area.

https://bugzilla.gnome.org/show_bug.cgi?id=671895

11 years agoprinting: Return correct width and height of page setup
Marek Kasik [Thu, 18 Dec 2014 15:25:50 +0000 (16:25 +0100)]
printing: Return correct width and height of page setup

Use correct margins when computing width and height returned by
gtk_page_setup_get_page_width() and
gtk_page_setup_get_page_height().

https://bugzilla.gnome.org/show_bug.cgi?id=671895

11 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 18 Dec 2014 12:21:10 +0000 (13:21 +0100)]
Updated Spanish translation

11 years agoUpdated Hebrew translation
Yosef Or Boczko [Thu, 18 Dec 2014 11:28:44 +0000 (13:28 +0200)]
Updated Hebrew translation

11 years agoVisual Studio Builds: Update Header "Installation"
Chun-wei Fan [Thu, 18 Dec 2014 07:31:58 +0000 (15:31 +0800)]
Visual Studio Builds: Update Header "Installation"

The list of headers became a bit out-of-date as development went on, so
make it up-to-date.

11 years agoGtkMenuButton: Don't leak popovers
Matthias Clasen [Thu, 18 Dec 2014 03:56:30 +0000 (22:56 -0500)]
GtkMenuButton: Don't leak popovers

Detach the previous popover from the toplevel when a new one
is set. This should fix

https://bugzilla.gnome.org/show_bug.cgi?id=741652

11 years agoAdwaita: another stab at the undershoot
Lapo Calamandrei [Wed, 17 Dec 2014 18:42:11 +0000 (19:42 +0100)]
Adwaita: another stab at the undershoot

11 years agoAdwaita: fix treeview progressbar issue
Lapo Calamandrei [Wed, 17 Dec 2014 17:29:02 +0000 (18:29 +0100)]
Adwaita: fix treeview progressbar issue

See https://bugzilla.gnome.org/show_bug.cgi?id=741569

11 years agoMenu items: force loading 16x16 icons
Lars Uebernickel [Thu, 11 Dec 2014 16:49:02 +0000 (17:49 +0100)]
Menu items: force loading 16x16 icons

GtkIconTheme doesn't scale icons beyond the size specified in the theme
anymore. This can result in arbitrarily large menu items when a theme
only provides large icons.

Force icons to always be 16x16 to ensure that menu items always have the
same height.

https://bugzilla.gnome.org/show_bug.cgi?id=741259

11 years agoUpdated POTFILES.in
Piotr Drąg [Wed, 17 Dec 2014 12:40:58 +0000 (13:40 +0100)]
Updated POTFILES.in

11 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 17 Dec 2014 11:38:51 +0000 (12:38 +0100)]
Updated Spanish translation

11 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 17 Dec 2014 11:37:49 +0000 (12:37 +0100)]
Updated Spanish translation

11 years agotextview: add extend-selection signal
Sébastien Wilmet [Mon, 15 Dec 2014 13:53:29 +0000 (14:53 +0100)]
textview: add extend-selection signal

To be able to customize the double-click and triple-click behaviors, to
provide custom selection boundaries.

https://bugzilla.gnome.org/show_bug.cgi?id=111503

11 years agoFix distcheck differently
Matthias Clasen [Tue, 16 Dec 2014 03:19:26 +0000 (22:19 -0500)]
Fix distcheck differently

The previous fix fixed distcheck, but broke distclean.

11 years agoMore release notes
Matthias Clasen [Tue, 16 Dec 2014 03:19:12 +0000 (22:19 -0500)]
More release notes

11 years agoMSVC Builds: Build and "Install" GDK-Win32 GL Items
Chun-wei Fan [Wed, 17 Dec 2014 08:24:54 +0000 (16:24 +0800)]
MSVC Builds: Build and "Install" GDK-Win32 GL Items

Since the support for GL support in the GDK Windows backend has landed in
master, we need to build it in the Visual Studio builds.  Update the
projects for that and "install" the public header that was added.

11 years agoAdd OpenGL Support for the GDK Windows Backend
Chun-wei Fan [Wed, 17 Dec 2014 04:32:04 +0000 (12:32 +0800)]
Add OpenGL Support for the GDK Windows Backend

This adds support for OpenGL to the GDK Windows backend using the WGL API
calls, which enables programs that uses the GTK+ GLArea widgets to work on
Windows as well.

This also adds a simple utility function to query for the version of OpenGL
that is supported by the Windows system, like the one provided by the X11
backend.

Many thanks to Alex (and Emmanuele, who started the OpenGL integration in
GTK+) who offered advice and help along the way, as well as the X11 and
Wayland backend for this work to refer to and to model upon.

https://bugzilla.gnome.org/show_bug.cgi?id=740795

11 years agogdkgl: Use vfunc For Uploading Textures
Chun-wei Fan [Wed, 17 Dec 2014 08:06:25 +0000 (16:06 +0800)]
gdkgl: Use vfunc For Uploading Textures

As the alignments, strides and image formats may be different across
platforms, make the texture upload a vfunc to allow backends to override
the GL commands for uploading textures for the software implementation for
gdk_gl_texture_from_surface(), if necessary.

Suggested by Alex to avoid copying non-trivial portions of code which would
then add maintainenace burden.

https://bugzilla.gnome.org/show_bug.cgi?id=740795

11 years agomenubutton: Fix double freeze_notify
Timm Bäder [Mon, 15 Dec 2014 09:29:11 +0000 (10:29 +0100)]
menubutton: Fix double freeze_notify

11 years agoGtkGLArea: Handle window scale factor changes
Alexander Larsson [Tue, 16 Dec 2014 12:27:49 +0000 (13:27 +0100)]
GtkGLArea: Handle window scale factor changes

We need to re-allocate the buffers for the new gl size.

11 years agoGtkGLArea: Only re-allocate buffers during paint
Alexander Larsson [Tue, 16 Dec 2014 12:25:23 +0000 (13:25 +0100)]
GtkGLArea: Only re-allocate buffers during paint

This drops the maybe_allocate_buffers that re-allocates buffers
at any point. Instead we just set have_buffers to FALSE and have
the buffers re-created when needed.

This also makes the buffer creation code imdeponent and makes it
clean up no longer needed buffers in order to handle being called
multiple times due to the above.

We also ensure we re-allocate the buffers when we're resizing
and the buffers are already created.

11 years agogdk: Fix scissoring with scaled windows
Alexander Larsson [Mon, 15 Dec 2014 21:31:48 +0000 (22:31 +0100)]
gdk: Fix scissoring with scaled windows

Make sure the window scale is always taken into acount when setting up
the scissor regions.

11 years agogdk_gl_texture_from_surface - fix software fallback
Alexander Larsson [Mon, 15 Dec 2014 20:55:10 +0000 (21:55 +0100)]
gdk_gl_texture_from_surface - fix software fallback

We can't combine multiple draws into one for the software fallback,
because each quad has a different texture. And we generally don't
want to make a larger single texture because then we would have
to upload more data.

11 years agogdk_cairo_draw_from_gl - fix drawing with alpha on window scale > 1
Alexander Larsson [Mon, 15 Dec 2014 20:54:11 +0000 (21:54 +0100)]
gdk_cairo_draw_from_gl - fix drawing with alpha on window scale > 1

The scissoring needs to take into account the window scale.

11 years ago3.15.3
Matthias Clasen [Mon, 15 Dec 2014 15:27:49 +0000 (10:27 -0500)]
3.15.3

11 years agobroadway: Initial SSL support
Michael Natterer [Mon, 15 Dec 2014 11:25:43 +0000 (11:25 +0000)]
broadway: Initial SSL support

Use the new --cert and --key parameters to broadwayd to pass paths to
cert and key files.

https://bugzilla.gnome.org/show_bug.cgi?id=730364

11 years agoGtkMenuTracker: one more visibility tweak
Ryan Lortie [Wed, 20 Aug 2014 20:00:14 +0000 (16:00 -0400)]
GtkMenuTracker: one more visibility tweak

On creation, we call action_removed() in case the action was missing
from the start.  Because we just created the action, 'can_activate' will
always be FALSE here and this function will therefore always do nothing.

We do want the visibility state to be updated though, for the case where
the action is missing but the item should still be visible from the
start.

Update the visibility directly instead of trying to call
action_removed().

https://bugzilla.gnome.org/show_bug.cgi?id=735122

11 years agoGtkMenuTrackerItem: fix submenu visibility flag
Ryan Lortie [Wed, 20 Aug 2014 19:43:09 +0000 (15:43 -0400)]
GtkMenuTrackerItem: fix submenu visibility flag

We were only properly setting the "is-visible" flag to TRUE for menu
items with associated actions and not (for example) on submenus.

This was fine because the code for building GtkMenus from models
(correctly) assumed that submenus should always be visible and never
checked the property.

This is not true for the Mac OS code, which actually checked the
property and found it to be false for submenus.

Initialise the property to TRUE so that we get the correct value
reported for items that don't have actions.

https://bugzilla.gnome.org/show_bug.cgi?id=735122

11 years agoquartz menu: update visibility property name
Ryan Lortie [Wed, 20 Aug 2014 19:42:42 +0000 (15:42 -0400)]
quartz menu: update visibility property name

This property is called "is-visible" now, not "visible".

https://bugzilla.gnome.org/show_bug.cgi?id=735122

11 years agopopover: Clamp tail gap limits by the tail height on that side
Carlos Garnacho [Sat, 13 Dec 2014 17:02:29 +0000 (18:02 +0100)]
popover: Clamp tail gap limits by the tail height on that side

All popover sides have extra margins to possibly hold the tail, this is
accounted for in gtk_popover_get_rect_coords(), and should be accounted
for too in the tail position calculation.

This fixes the gtk_render_frame_gap() warnings seen when a popover is
pushed far too close to window sides.

11 years agopopover: Ensure there is a child before focusing it
Carlos Garnacho [Sat, 13 Dec 2014 16:05:56 +0000 (17:05 +0100)]
popover: Ensure there is a child before focusing it

Fixes a warning in empty popovers being shown.

11 years agoinspector: Fix capitalization
Matthias Clasen [Sat, 13 Dec 2014 04:47:26 +0000 (23:47 -0500)]
inspector: Fix capitalization

11 years agoinspector: Add a cursor theme control
Matthias Clasen [Sat, 13 Dec 2014 04:14:34 +0000 (23:14 -0500)]
inspector: Add a cursor theme control

11 years agoAdwaita: Fix sidebar undershoot
Matthias Clasen [Sat, 13 Dec 2014 03:48:44 +0000 (22:48 -0500)]
Adwaita: Fix sidebar undershoot

The undershoot rendering in the gtk-demo sidebar was inheriting
unwanted background. Prevent that.

11 years agostylecontext: Make sure we always clear the cache when the CSS changes
Benjamin Otte [Sat, 13 Dec 2014 02:41:33 +0000 (03:41 +0100)]
stylecontext: Make sure we always clear the cache when the CSS changes

After b49c7c34214da2d8d5e6dae2e8d0b0fe1b23f68e we were no longer doing a
full revalidate after GTK_CSS_CHANGE_SOURCE changes.

This fixes spurious failures of widgets not properly updating when
changing the theme.

11 years agoWhitespace fixes
Matthias Clasen [Fri, 12 Dec 2014 21:50:19 +0000 (16:50 -0500)]
Whitespace fixes

11 years agoactions: Fix compile warning
Jasper St. Pierre [Sat, 13 Dec 2014 01:39:46 +0000 (17:39 -0800)]
actions: Fix compile warning

11 years agoUpdate git.mk
Jasper St. Pierre [Sat, 13 Dec 2014 01:38:27 +0000 (17:38 -0800)]
Update git.mk

This fixes the .deps of subdirs (a11y, deprecated, inspector) not
showing up in .gitignore.

11 years agogdk: Emit stamp-gc-h in the correct directory
Jasper St. Pierre [Sat, 13 Dec 2014 01:32:02 +0000 (17:32 -0800)]
gdk: Emit stamp-gc-h in the correct directory